package com.ufgov.zc.common.sf.model;

import java.math.BigDecimal;
import java.util.Date;

import com.ufgov.zc.common.util.EmpMeta;
import com.ufgov.zc.common.zc.model.ZcBaseBill;

public class SfJdResult extends ZcBaseBill {
  /**
  * 
  */
  private static final long serialVersionUID = 6506589213106612650L;

  public static final String SEQ_SF_JD_RESULT_ID = "SEQ_SF_JD_RESULT_ID";

  /**
   * 页签
   */
  public static final String TAB_ID = "SfJdResult_Tab";

  /**
   * 搜索条件
   */
  public static final String SEARCH_ID = "SfJdResult_search";

  public static final String SF_VS_JD_RESULT_STATUS = "SF_VS_JD_RESULT_STATUS";

  /**
   * 结果类别
   */
  public static final String SF_VS_JD_RESULT_TYPE = "SF_VS_JD_RESULT_TYPE";

  /**
   * 检验报告
   */
  public static final String RESULT_TYPE_JYBG = "JYBG";

  /**
   * 检验意见书
   */
  public static final String RESULT_TYPE_YJS = "YJS";

  public static final String COL_BRIEF = "SF_JD_RESULT_BRIEF"; // 检案摘要

  public static final String COL_ENTRUST_CODE = "SF_JD_RESULT_ENTRUST_CODE"; // 委托编号

  public static final String COL_ENTRUST_ID = "SF_JD_RESULT_ENTRUST_ID"; // 委托ID

  public static final String COL_FILE_ID = "SF_JD_RESULT_FILE_ID"; // 保存的word文件id

  public static final String COL_INPUTOR = "SF_JD_RESULT_INPUTOR"; // 录入人

  public static final String COL_INPUT_DATE = "SF_JD_RESULT_INPUT_DATE"; // 录入时间

  public static final String COL_JD_ADDRESS = "SF_JD_RESULT_JD_ADDRESS"; // 鉴定地点

  public static final String COL_JD_DATE = "SF_JD_RESULT_JD_DATE"; // 鉴定日期

  public static final String COL_JD_OPINION = "SF_JD_RESULT_JD_OPINION"; // 鉴定意见

  public static final String COL_JD_PROCESS = "SF_JD_RESULT_JD_PROCESS"; // 检验过程

  public static final String COL_JD_RESULT = "SF_JD_RESULT_JD_RESULT"; // 检验结果

  public static final String COL_JD_RESULT_ID = "SF_JD_RESULT_JD_RESULT_ID"; // 鉴定结果ID

  public static final String COL_NAME = "SF_JD_RESULT_NAME"; // 名称

  public static final String COL_ND = "SF_JD_RESULT_ND"; // 年度

  public static final String COL_PROCESS_INST_ID = "SF_JD_RESULT_PROCESS_INST_ID"; // 工作流实例号

  public static final String COL_REMARK = "SF_JD_RESULT_REMARK"; // 备注

  public static final String COL_RESULT_TYPE = "SF_JD_RESULT_RESULT_TYPE"; // 结果类别

  public static final String COL_STATUS = "SF_JD_RESULT_STATUS"; // 状态

  public static final String COL_ZC_PERSONS = "SF_JD_RESULT_ZC_PERSONS"; // 在场人员

  public static final String COL_JDR = "SF_JD_RESULT_JDR"; // 鉴定人

  public static final String COL_ZHU_SU = "SF_JD_RESULT_ZHU_SU"; // 主诉

  public static final String COL_JD_METHOD = "SF_JD_RESULT_JD_METHOD"; // 鉴定方法

  public static final String COL_JD_TARGET = "SF_JD_RESULT_JD_TARGET"; // 检验项目

  private String jdr;

  private String jdrName;

  private SfEntrust entrust = new SfEntrust();

  private SfJdTarget jdTarget = new SfJdTarget();

  private String zhuSu;

  private String jdMethod;

  private String jdTargetName;

  public String getJdr() {
    return jdr;
  }

  public void setJdr(String jdr) {
    this.jdr = jdr;
  }

  public String getJdrName() {
    return EmpMeta.getEmpName(jdr);
  }

  public void setJdrName(String jdrName) {
    this.jdrName = jdrName;
  }

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.JD_RESULT_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private BigDecimal jdResultId;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.ENTRUST_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private BigDecimal entrustId;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.ENTRUST_CODE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String entrustCode;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.NAME
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String name;

  /**
  * This field was generated by MyBatis Generator.
  * This field corresponds to the database column SF_JD_RESULT.REMARK
  *
  * @mbggenerated Tue Jan 20 21:10:38 CST 2015
  */
  private String remark;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.STATUS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String status;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.INPUTOR
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String inputor;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.INPUT_DATE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private Date inputDate;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.JD_DATE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private Date jdDate;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.JD_ADDRESS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String jdAddress;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.ZC_PERSONS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String zcPersons;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.BRIEF
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String brief;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.JD_PROCESS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String jdProcess;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.JD_RESULT
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String jdResult;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.JD_OPINION
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String jdOpinion;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.RESULT_TYPE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String resultType;

  /**
   * This field was generated by MyBatis Generator.
   * This field corresponds to the database column SF_JD_RESULT.FILE_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  private String fileId;

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.JD_RESULT_ID
   *
   * @return the value of SF_JD_RESULT.JD_RESULT_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public BigDecimal getJdResultId() {
    return jdResultId;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.JD_RESULT_ID
   *
   * @param jdResultId the value for SF_JD_RESULT.JD_RESULT_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setJdResultId(BigDecimal jdResultId) {
    this.jdResultId = jdResultId;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.ENTRUST_ID
   *
   * @return the value of SF_JD_RESULT.ENTRUST_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public BigDecimal getEntrustId() {
    return entrustId;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.ENTRUST_ID
   *
   * @param entrustId the value for SF_JD_RESULT.ENTRUST_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setEntrustId(BigDecimal entrustId) {
    this.entrustId = entrustId;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.ENTRUST_CODE
   *
   * @return the value of SF_JD_RESULT.ENTRUST_CODE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getEntrustCode() {
    return entrustCode;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.ENTRUST_CODE
   *
   * @param entrustCode the value for SF_JD_RESULT.ENTRUST_CODE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setEntrustCode(String entrustCode) {
    this.entrustCode = entrustCode;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.NAME
   *
   * @return the value of SF_JD_RESULT.NAME
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getName() {
    return name;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.NAME
   *
   * @param name the value for SF_JD_RESULT.NAME
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.REMARK
   *
   * @return the value of SF_JD_RESULT.REMARK
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getRemark() {
    return remark;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.REMARK
   *
   * @param remark the value for SF_JD_RESULT.REMARK
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setRemark(String remark) {
    this.remark = remark;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.STATUS
   *
   * @return the value of SF_JD_RESULT.STATUS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getStatus() {
    return status;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.STATUS
   *
   * @param status the value for SF_JD_RESULT.STATUS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.INPUTOR
   *
   * @return the value of SF_JD_RESULT.INPUTOR
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getInputor() {
    return inputor;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.INPUTOR
   *
   * @return the value of SF_JD_RESULT.INPUTOR
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getInputorName() {
    return EmpMeta.getEmpName(inputor);
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.INPUTOR
   *
   * @param inputor the value for SF_JD_RESULT.INPUTOR
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setInputor(String inputor) {
    this.inputor = inputor;
  }

  public void setInputorName(String inputorName) {
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.INPUT_DATE
   *
   * @return the value of SF_JD_RESULT.INPUT_DATE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public Date getInputDate() {
    return inputDate;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.INPUT_DATE
   *
   * @param inputDate the value for SF_JD_RESULT.INPUT_DATE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setInputDate(Date inputDate) {
    this.inputDate = inputDate;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.JD_DATE
   *
   * @return the value of SF_JD_RESULT.JD_DATE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public Date getJdDate() {
    return jdDate;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.JD_DATE
   *
   * @param jdDate the value for SF_JD_RESULT.JD_DATE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setJdDate(Date jdDate) {
    this.jdDate = jdDate;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.JD_ADDRESS
   *
   * @return the value of SF_JD_RESULT.JD_ADDRESS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getJdAddress() {
    return jdAddress;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.JD_ADDRESS
   *
   * @param jdAddress the value for SF_JD_RESULT.JD_ADDRESS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setJdAddress(String jdAddress) {
    this.jdAddress = jdAddress;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.ZC_PERSONS
   *
   * @return the value of SF_JD_RESULT.ZC_PERSONS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getZcPersons() {
    return zcPersons;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.ZC_PERSONS
   *
   * @param zcPersons the value for SF_JD_RESULT.ZC_PERSONS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setZcPersons(String zcPersons) {
    this.zcPersons = zcPersons;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.BRIEF
   *
   * @return the value of SF_JD_RESULT.BRIEF
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getBrief() {
    return brief;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.BRIEF
   *
   * @param brief the value for SF_JD_RESULT.BRIEF
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setBrief(String brief) {
    this.brief = brief;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.JD_PROCESS
   *
   * @return the value of SF_JD_RESULT.JD_PROCESS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getJdProcess() {
    return jdProcess;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.JD_PROCESS
   *
   * @param jdProcess the value for SF_JD_RESULT.JD_PROCESS
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setJdProcess(String jdProcess) {
    this.jdProcess = jdProcess;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.JD_RESULT
   *
   * @return the value of SF_JD_RESULT.JD_RESULT
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getJdResult() {
    return jdResult;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.JD_RESULT
   *
   * @param jdResult the value for SF_JD_RESULT.JD_RESULT
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setJdResult(String jdResult) {
    this.jdResult = jdResult;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.JD_OPINION
   *
   * @return the value of SF_JD_RESULT.JD_OPINION
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getJdOpinion() {
    return jdOpinion;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.JD_OPINION
   *
   * @param jdOpinion the value for SF_JD_RESULT.JD_OPINION
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setJdOpinion(String jdOpinion) {
    this.jdOpinion = jdOpinion;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.RESULT_TYPE
   *
   * @return the value of SF_JD_RESULT.RESULT_TYPE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getResultType() {
    return resultType;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.RESULT_TYPE
   *
   * @param resultType the value for SF_JD_RESULT.RESULT_TYPE
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setResultType(String resultType) {
    this.resultType = resultType;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method returns the value of the database column SF_JD_RESULT.FILE_ID
   *
   * @return the value of SF_JD_RESULT.FILE_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public String getFileId() {
    return fileId;
  }

  /**
   * This method was generated by MyBatis Generator.
   * This method sets the value of the database column SF_JD_RESULT.FILE_ID
   *
   * @param fileId the value for SF_JD_RESULT.FILE_ID
   *
   * @mbggenerated Tue Jan 20 21:10:38 CST 2015
   */
  public void setFileId(String fileId) {
    this.fileId = fileId;
  }

  public SfEntrust getEntrust() {
    return entrust;
  }

  public void setEntrust(SfEntrust entrust) {
    this.entrust = entrust;
    if (entrust != null && entrust.getJdTarget() != null)
      setJdTarget(entrust.getJdTarget());
  }

  public String getZhuSu() {
    return zhuSu;
  }

  public void setZhuSu(String zhuSu) {
    this.zhuSu = zhuSu;
  }

  public String getJdMethod() {
    return jdMethod;
  }

  public void setJdMethod(String jdMethod) {
    this.jdMethod = jdMethod;
  }

  public SfJdTarget getJdTarget() {
    if (getEntrust() != null)
      return getEntrust().getJdTarget();
    return jdTarget;
  }

  public void setJdTarget(SfJdTarget jdTarget) {
    this.jdTarget = jdTarget;
  }

  public String getJdTargetName() {
    if (jdTargetName != null)
      return jdTargetName;
    if (getJdTarget() != null)
      return getJdTarget().getName();
    return jdTargetName;
  }

  public void setJdTargetName(String jdTargetName) {
    this.jdTargetName = jdTargetName;
  }

}